package cn.wolfcode.car.business.domain;

import cn.wolfcode.car.base.domain.User;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.Date;

@Setter
@Getter
@ToString
public class CustomerLinkMane {
    //性别
    public static final Integer GENDER_MAN = 0;
    public static final Integer GENDER_WOMAN =  1;
    public static final Integer GENDER_ON =  2;
    //任职状态,在职,离职
    public static final boolean POSITION_STATE_ON = false;
    public static final boolean POSITION_STATE_OFF = true;

    private Long id;                         //id

    private Long customerId;                  //客户id

     private Customer customer;               //客户

    private String linkman;                    // 联系人名字

    private Integer gender = GENDER_MAN;      //  性别

    private Integer age;                          //  年龄

    private String phone;                       //联系人电话

    private String position;                    //职务

    private Boolean positionState = POSITION_STATE_ON;    //任职状态

    private String department;                  //部门

    private Long inputUser;                     //录入人id

    private User user;                          //录入人信息
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")
    private Date inputTime;                     // 录入时间
}